package com.example.demo.hotel.service;

import com.example.demo.hotel.entity.User;
import org.springframework.data.domain.Page;

public interface UserService {
    Page<User> getUsers(int page, int size);
    User getUserById(Long id);
    User createUser(User user);
    User updateUser(Long id, User user);
    void deleteUser(Long id);
    User findByUsername(String username);
    User updateUserInfoByUsername(String username, User userUpdate);
    void changePassword(String username, String oldPassword, String newPassword);
}